﻿
CREATE PROCEDURE dbo._DropObject
(	@ObjectName sysname
	)
AS
SET NOCOUNT ON

if NOT exists (select * from dbo.sysobjects where name = @ObjectName) RETURN

DECLARE @EXEC varchar(512)
SET @EXEC = 'drop '+dbo._GetObjectTypeName(@ObjectName)+' '+@ObjectName
EXEC (@EXEC)


RETURN 

